﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddProduct.aspx.cs" Inherits="HelloASPX.AddProduct" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>添加商品信息</title>
    <link rel="stylesheet" href="./libs/particles/css/style.css" />
	<link rel="stylesheet" href="./libs/sweetalert2/sweetalert2.min.css" />
	<link rel="stylesheet" href="./css/base.css" />
	<link rel="stylesheet" href="./css/login.css" />
</head>
<body>
    <form id="form1" runat="server">
		<div id="particles-js"></div>
			<div id="wrapper">
				<div>
                    <a  href="ProductList.aspx"><img src="./img/logo.png" style="width:300px;" /></a>
					<h2>感谢您使用本系统添加商品</h2>
				</div>
            <ul class="group_input">
				<li>
                    产品名称：<asp:TextBox ID="ProductName" runat="server" placeholder="产品名称"></asp:TextBox>
				</li>
				<li>
                    上架时间：<asp:TextBox ID="ProductTime" runat="server" placeholder="上架时间" TextMode="Date"></asp:TextBox>
				</li>
				<li>
                    产品图片：<asp:FileUpload ID="FileUpload1" runat="server" />
				</li>
				<li>
                    产品价格：<asp:TextBox ID="ProductPrice" runat="server" placeholder="产品价格"></asp:TextBox>
				</li>
				<li>
                    产品介绍：<asp:TextBox ID="ProductInfo" runat="server" placeholder="产品介绍"></asp:TextBox>
				</li>
			</ul>
                <asp:Button ID="addProductButton" runat="server" Text="添加商品" class="submit_btn" OnClick="addProductButton_Click"/>
                <asp:Button ID="SelectProductButton" runat="server" Text="查询商品" class="submit_btn" style="background-color:lightgreen" OnClick="SelectProductButton_Click" />
		</div>
    </form>
	<script src="./libs/jquery-1.12.4/jquery.min.js"></script>
	<script src="./libs/sweetalert2/sweetalert2.min.js"></script>
	<script src="./libs/particles/particles.min.js"></script>
	<script src="./libs/particles/js/app.js"></script>
	
	<script>
        var count_particles, stats, update;
        stats = new Stats;
        stats.setMode(0);
        stats.domElement.style.position = 'absolute';
        stats.domElement.style.left = '0px';
        stats.domElement.style.top = '0px';
        document.body.appendChild(stats.domElement);
        count_particles = document.querySelector('.js-count-particles');
        update = function () {
            stats.begin();
            stats.end();
            if (window.pJSDom[0].pJS.particles && window.pJSDom[0].pJS.particles.array) {
                count_particles.innerText = window.pJSDom[0].pJS.particles.array.length;
            }
            requestAnimationFrame(update);
        };
        requestAnimationFrame(update);
    </script>
</body>
</html>
